Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Accessible Qt5 and screenreader [solved]

Accessible Qt5 and screenreader [solved]

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 4.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AleaS4
    wrote on last edited by AleaS4
    #1

    Hello everybody,
    I have a problem with Qt5 to accessible structure. I try to create a simple program with "Qt GUI Application".
    In this program I create a QWidget (like window) and I insert 3 controls with RAD ( Design).
    In specially : 1 textEdit , 1 QSpinBox and 1 comboBox.
    For each controls I set a property "Accessible Name" and "Description Name" in this mode:

    @ ui->comboBox->setAccessibleName("my combo box for example");
    ui->spinBox->setAccessibleName("my SpinBox for Example");
    ui->textEdit->setAccessibleName("my textEdit for Example");@

    I try to compile and verify with a screen reader ( in OS Windows I use JAWS) the accessible property but there is a soma problem: In QSpinBox when I change value with up / down arrow translate a value in a indefinite object ("Graphic XXX") .
    In comboBox when I change value with up/down arrow the jaws system not translate a value ( just when i use tab and change focus in another control).

    There is a solution for this problem in QT5? I try to search in a tutorial but i found just link like QT4 to qaccessiblewidget , but in QT5 I don't find this class to implement.
    Can I view soma example in QT5 please?? Thank you !

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      when you only use standard Qt widgets all you need to make sure is that the application can find "plugins\accessible\qtaccessiblewidgets.dll".
      You only need to reimplement QAccessibleWidget for custom widgets.

      Also make sure that Qt is built with accessibility support if you have built it from source.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AleaS4
        wrote on last edited by
        #3

        Thak you for reply ...
        Yes, I did.
        I set QT in .pro file in this mode:
        QTPLUGIN += qtaccessiblewidgets
        and I added the folder accessible in same folder to my exe .
        When I compiled QT I configured with -accessibility parameter and then maked with minwg32-make.
        Unfortunatilly doesn't work all widget with screen reader . I tryed to use another PC with Jaws but it's same.
        I noted that the progressbar have a same problem.
        It's possible? Where am I going wrong?

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          [quote author="AleaS4" date="1380100660"]
          I set QT in .pro file in this mode:
          QTPLUGIN += qtaccessiblewidgets
          [/quote]
          That's not correct. You only need to use the QTPLUGIN variable when you want to link the plugins statically into your application.

          [quote author="AleaS4" date="1380100660"]
          and I added the folder accessible in same folder to my exe .
          [/quote]
          the plugin needs to remain in the folder "plugins/accesible/qtaccessiblewidgets.dll" relatively to your exe file! (As i wrote in my previous post!)

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AleaS4
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved